package com.tony.blog.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tony.blog.model.entity.SysRoleDeptEntity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: SysRoleDeptService
 * @Auther: 皮蛋布丁
 * @Date: 2021/07/25/10:51
 * @Description:
 */
public interface SysRoleDeptService extends IService<SysRoleDeptEntity> {

    /**
    * @Description: saveOrUpdate 角色部门关系表的新增
    * @Param: [roleId, deptIdList]
    * @return: boolean
    * @Author: 皮蛋布丁
    * @Date: 2021/7/25 11:18
    */
    boolean saveOrUpdate(Long roleId, List<Long> deptIdList);

    /**
    * @Description: deleteBatch 批量删除
    * @Param: [roleIds]
    * @return: boolean
    * @Author: 皮蛋布丁
    * @Date: 2021/7/25 11:31
    */
    boolean deleteBatch(List<Long> roleIds);

    /**
    * @Description: queryDeptIdList 获取角色部门列表
    * @Param: [roleId]
    * @return: java.util.List<java.lang.Long>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/25 14:49
    */
    List<Long> queryDeptIdList(Long roleId);
}
